import { UiButton } from "@/shared/Uikit"
import { useRouter } from "next/navigation"


type EditLessonButtonProps = {
    lessonId: number
}

export default function EditLessonButton(props:EditLessonButtonProps){
    const router = useRouter()
    return(
        <>
        <UiButton 
        onClick={()=>router.push(`editlessoncontent/${props.lessonId}`)}
        variant='primary'
        >
            Редактировать
        </UiButton>
        </>
    )

}